{%- assign url_parts = page.url | split: '/' %}
{%- assign spec_name = url_parts[1] %}
{%- assign spec_version = url_parts[2] %}

{%- if site.data.versions[spec_name].versions[spec_version].status %}

{%- if page.layout == "specifications" %}
<div class="rounded-lg p-4 border border-gray-400 mb-4">
{%- else %} <!-- page.layout == "standard" -->
<div class="rounded-lg p-4 border border-green-900 mt-4 md:mt-0 mb-4">
{%- endif %}

  Status: <a href="/spec-stages" style="display: inline">{{ site.data.versions[spec_name].versions[spec_version].status }}</a>

</div>

{%- endif %}
